using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using DevExpress.Web.ASPxGridView;

using SPL.Services;
using SPL.Entities;

public partial class test : System.Web.UI.Page
{

  protected void Page_Load(object sender, EventArgs e)
  {
    if (!IsPostBack && !IsCallback)
    {
              
    }
    
  }


  protected void ASPxGridView4_Load(object sender, EventArgs e)
  {
    if (sender is ASPxGridView)
    {
      DetailBatchGppService objDetailBatchGppService = new DetailBatchGppService();
      TList<DetailBatchGpp> detailRow = new TList<DetailBatchGpp>();
      detailRow.AddRange(objDetailBatchGppService.GetByBatchId(int.Parse((sender as ASPxGridView).GetMasterRowKeyValue().ToString())));
      (sender as ASPxGridView).DataSource = detailRow;
      (sender as ASPxGridView).DataBind();
    }
  }
  protected void ASPxGridView5_Load(object sender, EventArgs e)
  {
    if (sender is ASPxGridView)
    {
      DetailBatchTvtService objDetailBatchTvtService = new DetailBatchTvtService();
      TList<DetailBatchTvt> detailRow = new TList<DetailBatchTvt>();
      detailRow.AddRange(objDetailBatchTvtService.GetByBatchId(int.Parse((sender as ASPxGridView).GetMasterRowKeyValue().ToString())));
      (sender as ASPxGridView).DataSource = detailRow;
      (sender as ASPxGridView).DataBind();
    }
  }
}
